<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3//EN">
<HTML><HEAD>
		<TITLE>User's Reference - Print</TITLE>
		<META HTTP-EQUIV="keywords" CONTENT="GRAPHICS VISUALIZATION VISUAL PROGRAM DATA
MINING">
	<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
</HEAD><BODY BGCOLOR="#FFFFFF" link="#00004b" vlink="#4b004b">
		<TABLE width=510 border=0 cellpadding=0 cellspacing=0>
			<TR>
				<TD><IMG src="../images/spacer.gif" width=80 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=49 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=24 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=100 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=3 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=127 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=6 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=50 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=71 height=1></TD>
			</TR>
			<TR>
				<TD colspan=9><IMG src="../images/flcgh_01.gif" width=510 height=24 alt="OpenDX - Documentation"></TD>
			</TR>
			<TR>
				<TD colspan=2><A href="../allguide.htm"><IMG src="../images/flcgh_02.gif" width=129 height=25 border="0" alt="Full Contents"></A></TD>
				<TD colspan=3><A href="../qikguide.htm"><IMG src="../images/flcgh_03.gif" width=127 height=25 border="0" alt="QuickStart Guide"></A></TD>
				<TD><A href="../usrguide.htm"><IMG src="../images/flcgh_04.gif" width=127 height=25 border="0" alt="User's Guide"></A></TD>
				<TD colspan=3><B><A href="../refguide.htm"><IMG src="../images/flcgh_05d.gif" width=127 height=25 border="0" alt="User's Reference"></A></B></TD>
			</TR>
			<TR>
				<TD><A href="refgu105.htm"><IMG src="../images/flcgh_06.gif" width=80 height=17 border="0" alt="Previous Page"></A></TD>
				<TD colspan=2><A href="refgu107.htm"><IMG src="../images/flcgh_07.gif" width=73 height=17 border="0" alt="Next Page"></A></TD>
				<TD><A href="../refguide.htm"><IMG src="../images/flcgh_08.gif" width=100 height=17 border="0" alt="Table of Contents"></A></TD>
				<TD colspan=3><A href="refgu009.htm"><IMG src="../images/flcgh_09.gif" width=136 height=17 border="0" alt="Partial Table of Contents"></A></TD>
				<TD><A href="refgu175.htm"><IMG src="../images/flcgh_10.gif" width=50 height=17 border="0" alt="Index"></A></TD>
				<TD><A href="../srchindx.htm"><IMG src="../images/flcgh_11.gif" width=71 height=17 border="0" alt="Search"></A></TD>
			</TR>
		</TABLE>
		<H3><A name="HDRPRINT" ></A>Print</H3>
		<A NAME="IDX627"></A><A NAME="IDX628"></A>
<P><STRONG>Category</STRONG>
<P>
<A HREF="refgu008.htm#HDRCATDBG">Debugging</A>
<P><STRONG>Function</STRONG>
<P>
Prints an object.
<P><STRONG>Syntax</STRONG>
<PRE>
Print(<STRONG>object, options, component</STRONG>);
</PRE>
<P><STRONG>Inputs</STRONG>
<BR>
<TABLE BORDER>
<TR>
<TH ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">Name
</TH><TH ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">Type
</TH><TH ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">Default
</TH><TH ALIGN="LEFT" VALIGN="TOP" WIDTH="40%">Description
</TH></TR><TR>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%"><TT><STRONG>object</STRONG></TT>
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">object
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">none
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="40%">object to print
</TD></TR><TR>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%"><TT><STRONG>options</STRONG></TT>
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">string
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">&quot;o&quot;
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="40%">printing options
</TD></TR><TR>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%"><TT><STRONG>component</STRONG></TT>
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">string or string list
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">all components
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="40%">component or components to print
</TD></TR></TABLE>
<P><STRONG>Functional Details</STRONG>
<P>
This module prints <TT><STRONG>object</STRONG></TT> according to the
specifications in <TT><STRONG>options</STRONG></TT>.
Each character in the options string specifies printing a particular
portion of the information about the object&#58;
<TABLE CELLPADDING="3">
<TR VALIGN="TOP"><TD><P><B>r
</B></TD><TD><P>recursively traverse the object
</TD></TR><TR VALIGN="TOP"><TD><P><B>o
</B></TD><TD><P>print only the top level of the object
</TD></TR><TR VALIGN="TOP"><TD><P><B>d
</B></TD><TD><P>print first and last 25 items in arrays, as well as headers
</TD></TR><TR VALIGN="TOP"><TD><P><B>D
</B></TD><TD><P>print all the items in arrays as well as headers
</TD></TR><TR VALIGN="TOP"><TD><P><B>x
</B></TD><TD><P>for debugging, print in expanded form (lists the object address,
the object tab, &nbsp;and the reference counts of the
object)
</TD></TR><TR VALIGN="TOP"><TD><P><B><B><I>n</I></B>
</B></TD><TD><P>print object to <B><I>n</I></B> levels.
</TD></TR></TABLE>
<P>
The <TT><STRONG>component</STRONG></TT> parameter controls which components
of <TT><STRONG>object</STRONG></TT>
are printed.
By default, all components are printed.
All values are printed in decimal format except for byte array data,
which are printed in hexadecimal.
<P>
In the user interface, the output of the Print module appears in the Message
window.
<P><STRONG>Script Language Example</STRONG>
<P>
In the following example, the first call to Print does not recurse
through the structure but simply reports (prints) that
<TT><STRONG>both</STRONG></TT> is a group with two members.
The second call recurses through the group and reports that each
member of the group has six components, what those components
are, and how many items there are in each.
The third call provides this information and, in addition,
the first and last 25 items in the "data"
component of each field.
The final call prints out all of the items in both the
"positions" and "box" components.
<PRE>
electrondensity = Import("/usr/local/dx/samples/data/watermolecule");
electrondensity = Partition(electrondensity);
iso1 = Isosurface(electrondensity,0.1);
iso2 = Isosurface(electrondensity,0.3);
both = Collect(iso1,iso2);
Print(both);
Print(both,"r");
Print(both,"d", "data");
Print(both,"D", {"positions", "box"});
</PRE>
<P><STRONG>See Also</STRONG>
<P>
&nbsp;<A HREF="refgu051.htm#HDRECHO">Echo</A>,

&nbsp;<A HREF="refgu046.htm#HDRDESCRIB">Describe</A>
		<P>
		<HR>
		<DIV align="center">
			<P><A href="../allguide.htm"><IMG src="../images/foot-fc.gif" width="94" height="18" border="0" alt="Full Contents"></A> <A href="../qikguide.htm"><IMG src="../images/foot-qs.gif" width="94" height="18" border="0" alt="QuickStart Guide"></A> <A href="../usrguide.htm"><IMG src="../images/foot-ug.gif" width="94" height="18" border="0" alt="User's Guide"></A> <A href="../refguide.htm"><IMG src="../images/foot-ur.gif" width="94" height="18" border="0" alt="User's Reference"></A></P>
		</DIV>
		<DIV align="center">
			<P><FONT size="-1">[ <A href="http://www.research.ibm.com/dx">OpenDX Home at IBM</A>&nbsp;|&nbsp;<A href="http://www.opendx.org/">OpenDX.org</A>&nbsp;] </FONT></P>
			<P></P>
		</DIV>
		<P></P>
	</BODY></HTML>
